how to find when the particle is at rest